package com.general.template.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: 杰哥
 * Date: 2021/2/15 18:00
 * @Description:
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "power_admin")
public class PowerAdmin implements Serializable {
    /**
     * 唯一主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 管理员名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 管理员账号
     */
    @TableField(value = "username")
    private String username;

    /**
     * 管理员密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 管理员头像路径
     */
    @TableField(value = "header_url")
    private String headerUrl;

    /**
     * 是否禁止用户  0否 1是
     */
    @TableField(value = "status")
    private Integer status;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_USERNAME = "username";

    public static final String COL_PASSWORD = "password";

    public static final String COL_HEADER_URL = "header_url";

    public static final String COL_STATUS = "status";
}